package com.yulan.fastkillcourse.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yulan.fastkillcourse.Dto.CourseDto;
import com.yulan.fastkillcourse.mapper.CourseMapper;
import com.yulan.fastkillcourse.model.Course;
import com.yulan.fastkillcourse.model.CourseMargin;
import com.yulan.fastkillcourse.service.CourseService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements CourseService {

    @Autowired
    CourseMapper courseMapper;

    @Override
    public List<CourseDto> getAll() {
        return courseMapper.getAll();
    }

    @Override
    public CourseDto getOne(int cid) {
        return courseMapper.getOne(cid);
    }
}
